import request from '@/utils/request'

// 查询评论列表
export function listAcUser(query) {
  return request({
    url: '/acUser/list',
    method: 'get',
    params: query
  })
}

// 查询发送人评论详细
export function getAcUserFromId(userId) {
  return request({
    url: '/acUser/user/' + userId,
    method: 'get'
  })
}

export function getAcUserForumId(acId) {
  return request({
    url: '/acUser/acId/' + acId,
    method: 'get'
  })
}

// 查询评论详细
export function getId(id) {
  return request({
    url: '/acUser/' + id,
    method: 'get'
  })
}

// 新增评论
export function addAcUser(data) {
  return request({
    url: '/acUser',
    method: 'post',
    data: data
  })
}

// 修改评论
export function updateAcUser(data) {
  return request({
    url: '/acUser',
    method: 'put',
    data: data
  })
}






// 删除评论
export function delReply(id) {
  return request({
    url: '/acUser/' + id,
    method: 'delete'
  })
}

